<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>React Antd 顶部菜单</title>
    <script src="https://cdn.bootcss.com/react/16.2.0/umd/react.development.js"></script>
    <script src="https://cdn.bootcss.com/react-dom/16.2.0/umd/react-dom.development.js"></script>

    <script src="https://cdn.bootcss.com/react-router/4.2.0/react-router.js"></script>
    <script src="https://cdn.bootcss.com/react-router-dom/4.2.2/react-router-dom.js"></script>

    <script src="https://cdn.bootcss.com/prop-types/15.6.0/prop-types.min.js"></script>

    <script src="https://cdn.bootcss.com/moment.js/2.19.4/moment.min.js"></script>

    <link href="https://cdn.bootcss.com/antd/3.0.3/antd.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/antd/3.0.3/antd.js"></script>

    <script src="https://cdn.bootcss.com/babel-standalone/6.26.0/babel.min.js"></script>

    <link href="https://cdn.bootcss.com/highlight.js/9.12.0/styles/vs2015.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>

    <script>hljs.initHighlightingOnLoad();</script>
<style>
    .ant-layout-header,
    .ant-layout-footer {

    }
    .ant-layout-sider {
        background: #3ba0e9;
        color: #fff;
        line-height: 120px;
    }
    .logo{
        float:left;
    }
</style>
</head>
<body>
<div id="root"></div>

<p>代码</p>
<pre><code class="babel">
</code>
<script type="text/babel">

    const {Layout, Menu, Icon } = antd;
    const SubMenu = Menu.SubMenu;
    const MenuItemGroup = Menu.ItemGroup;
    const { Header, Content, Sider, Footer } = Layout;

    class App extends React.Component {

        render() {
            return (
                <Layout>
                    <Header><embed src={"../asset/svg/qklogog.svg"} type={"image/svg+xml"} height={64}/>这是</Header>
                    <Layout>
                        <Sider>left sidebar</Sider>
                        <Content>main content</Content>
                        <Sider>right sidebar</Sider>
                    </Layout>
                    <Footer>footer</Footer>
                </Layout>
            );
        }
    }

    ReactDOM.render(
        <App />
        , document.getElementById('root')
    );
</script>

</body>
</html>